import 'package:flutter_vibrate/flutter_vibrate.dart';

bool hapticFeedback = true;

///马达反馈
vibrate() async {
  bool canVibrate = await Vibrate.canVibrate;
  if (canVibrate && hapticFeedback) {
    Vibrate.feedback(FeedbackType.selection);
  }
}
